<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>11.小米界面不规则元素布局</title>
  <style>
    article {
      width: 300px;
      height: 300px;
      border: solid 5px silver;
      display: grid;
      grid-template-rows: repeat(2, 1fr);
      grid-template-columns: repeat(2, 1fr);

    }
    
    div{
      background-color: blueviolet;
      background-clip: content-box;
      box-sizing: border-box;
      padding: 10px;
      color: white;
      font-size: 25px;
    }

    div:nth-child(1){
      grid-row-start: 1;
      grid-row-end: 3;
      grid-column-start: 1;
      grid-column-end: 2;
    }
  </style>
</head>

<body>
  <article>
    <div>1</div>
    <div>2</div>
    <div>3</div>

  </article>
</body>

</html>